package com.study.portal.util;

import javax.servlet.http.HttpServletRequest;

public class CommonUtil {
	/**
	 * 获取项目跟路径
	 * @param request
	 * @return
	 */
	public static String getBasePath(HttpServletRequest request) {
		String path = request.getContextPath();
		String basePath = request.getScheme() + "://" + request.getServerName()
				+ ":" + request.getServerPort() + path + "/";
		return basePath;
	}
}